package fr.persistence;

import java.io.Serializable;
import java.util.List;

public interface GenericDao<T, K extends Serializable> {
 
    boolean createObject(T newInstance) ;
 
    T readObject(K id);
 
    List<T> readAllObject();
 
    boolean updateObject(T transientObject) ;
 
    boolean deleteObject(T persistentObject) ;

}
